<?php namespace App\Services;

use App\Models\Applicant;

class ApplicantService
{

    /**
     * 是否有第三方ID
     * @param $provider_id
     * @return bool|mixed
     */
    public function isExistProviderId($provider_id)
    {
        $info = Applicant::select(['id','email'])->where('provider_id',$provider_id)->first();

        if(!$info){
            return false;
        }
        return $info;
    }

}